﻿
function LoadJS(file){
var head = document.getElementsByTagName('HEAD').item(0);
var script = document.createElement('SCRIPT');
script.src = file;
script.type = "text/javascript";
head.appendChild(script);
};
function PopWindow(title, url, width, height) {
    $('#IframeSysiframe', window.top.document).attr("src", url);
   // $('#IframeSysiframe', window.top.document).load(url);
    $document = $('#DivSysiframe', window.top.document);
    try {
        $document.dialog({
            title: title,
            width: width,
            height: height,
            onClose: function () {
                $('#IframeSysiframe', window.top.document).attr("src", "/Sys/default.htm");
            }
        });

        $document.dialog('open');
    } catch (e) {
        LoadJS('\/Components\/EasyUI\/jquery.easyui.min.js');
        window.onload = PopWindow(title, url, width, height);
        return;
    }
};
$(function myfunction() {
    var dlgaaa = $('#DivSysiframe').dialog({
        draggable: true,
        resizable: true,
        closed: true,
        show: 'Transfer',
        hide: 'Transfer',
        autoOpen: false,
        minHeight: 10,
        minwidth: 10,
        modal:true
    });
});
